<?php
    foreach($bottomcontentads as $bottomcontentads) {
        $link = $bottomcontentads["Paid_ads"]["link"];
        if(empty($bottomcontentads["Paid_ads"]["link"])) {
            $link = '#';
        }
        echo '<div class="image-ads">';
        echo '<a href="'.$link.'" target="_blank">'.$this->Html->image('advertises/'.$bottomcontentads["Paid_ads"]["banner"], array('width' => '100%','alt'=>$bottomcontentads["Paid_ads"]["title"])).'</a>';
        echo '</div>';
    }
?>
